import request from '@/utils/request'

export function getExpressList (admin) {
  return request({
    url: admin ? '/v01/kk_type/all' : '/v01/kk_type/list',
    method: 'get'
  })
}

export function getExpressListByNamespace (namespace) {
  return request({
    url: '/v01/kk_type/all/printer',
    method: 'get',
    params: { namespace }
  })
}
